package cn.ctbu.xiaopeng.studentscoremanage.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.time.LocalDateTime;

/**
 * 操作日志视图对象VO
 *
 * @author xiaopeng
 * @version 1.0
 */
@Data
public class OperateLogVO {
    private Integer id;  // 主键 ID
    private String operateUserId;  // 操作人 ID

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime operateTime;  // 操作时间，格式为 "yyyy-MM-dd HH:mm:ss"

    private String className;  // 操作类名

    private String methodName;  // 操作方法名

    private String methodParams;  // 操作方法参数

    private String returnValue;  // 方法返回值

    private Long costTime;  // 方法执行时间（毫秒）

    public OperateLogVO(Integer id, String operateUserId, LocalDateTime operateTime,
                        String className, String methodName, String methodParams,
                        String returnValue, Long costTime) {
        this.id = id;
        this.operateUserId = operateUserId;
        this.operateTime = operateTime;
        this.className = className;
        this.methodName = methodName;
        this.methodParams = methodParams;
        this.returnValue = returnValue;
        this.costTime = costTime;
    }
}
